package com.qdlc.p2p.dal.model;

import org.springframework.beans.BeanUtils;

import com.qdlc.p2p.dal.dto.AdditionalFlowYieldPlan;

/**
 * 待收计划model
 * @author wjx
 * @version 2.0
 * @date 2015年5月25日 下午5:00:37
 */
public class FlowYieldPlanModel extends AdditionalFlowYieldPlan {
	
	/**
	 * 项目名称
	 */
	private String projectName;
	
	/**
	 * 购买总金额
	 */
	private double buyMoney;
	
	/**
	 * 购买份数
	 */
	private int buyCopies;
	
	/**
	 * 项目序列id
	 */
	private String uuid;
	
	/**
	 * 利率
	 */
	private double apr;
	
	private int showPeriod;

	/**
	 * 将基类封装到model中，创建model对象
	 * @param flowProject
	 * @return
	 */
	public static FlowYieldPlanModel instance(AdditionalFlowYieldPlan yieldPlan) {
		FlowYieldPlanModel yieldModel = new FlowYieldPlanModel();
		BeanUtils.copyProperties(yieldPlan, yieldModel);
		return yieldModel;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public double getBuyMoney() {
		return buyMoney;
	}

	public void setBuyMoney(double buyMoney) {
		this.buyMoney = buyMoney;
	}

	public int getBuyCopies() {
		return buyCopies;
	}

	public void setBuyCopies(int buyCopies) {
		this.buyCopies = buyCopies;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public double getApr() {
		return apr;
	}

	public void setApr(double apr) {
		this.apr = apr;
	}

	public int getShowPeriod() {
		return showPeriod;
	}

	public void setShowPeriod(int showPeriod) {
		this.showPeriod = showPeriod;
	}
	
	
}
